import sys
import os
from python_baway.common.xcommon import xcheck

# xcheck(sys.argv)
xcmd = os.path.basename(sys.argv[0])
xusage = f'Usage: {xcmd} n content\nTo print "content" "n" times.'
try:
    xn = int(sys.argv[1])
    xcont = sys.argv[2]
    for i in range(xn):
        print(xcont)
except Exception:
    print(xusage)
    sys.exit(-1)
